package edu.flying.panda.taskmanager;

/**
 * User class to store data about each User
 * @author FlyingPanda
 */

public class User {

	private int id;
	private String username;
	private String password;
	private String name;
	private String email;

	public User() {
		// empty constructor
	}

	/**
	 * Constructor method for a new User
	 * @param UN Username
	 * @param PW Password
	 * @param NA Name
	 * @param EM Email Address
	 */
	public User(int ID, String UN, String PW, String NA, String EM) {
		id = ID;
		username = UN;
		password = PW;
		name = NA;
		email = EM;
	}
	//constructor
	public User(String UN, String PW, String NA, String EM) {
		username = UN;
		password = PW;
		name = NA;
		email = EM;
	}


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	/**
	 * Getter method for Username
	 * @return Returns the User's Username
	 */
	public String getUsername() {
		return username;
	}

	
	/**
	 * Getter method for Password
	 * @return Returns the User's password
	 */
	public String getPassword() {
		return password;
	}

	
	/**
	 * Getter method for Email
	 * @return Returns the User's email address
	 */
	public String getEmail() {
		return email;
	}

	
	/**
	 * Getter method for Name
	 * @return Returns the User's name
	 */
	public String getName() {
		return name;
	}

	/**
	 * Setter method for new Username
	 * @param u Desired new Username
	 */
	public void setUsername(String u) {
		username = u;
	}

	/**
	 * Setter method for new Password
	 * @param p Desired new Password
	 */
	public void setPassword(String p) {
		password = p;
	}

	/**
	 * Setter method for Email Address
	 * @param e Desired new Email Address
	 */
	public void setEmail(String e) {
		email = e;
	}

	/**
	 * Setter method for Name
	 * @param n Desired new Name
	 */
	public void setName(String n) {
		name = n;
	}

}
